package com.jd.sunny.java.multithreading.synch;

/**
 * @Description:
 * @author:sunny
 * @since:2012-12-12 18:19
 * @version:1.0.0
 */
public class TestBankRunnable {

    private final static int THREAD_COUNT = 1001;
    
    public static void main(String[]args){
        Account sunlin = new Account("sunlin",10000);
        Account xiaozhi = new Account("xiaozhi",10000);

        for (int i =0;i<THREAD_COUNT;i++){
            BankRunnable bankRunnable = new BankRunnable(sunlin,xiaozhi);
            Thread thread = new Thread(bankRunnable);
            thread.start();
        }

    }



}
